import axios from './base'

export let $_addcate = params => axios.post('/goods/addcate', params)
export let $_catelist = params => axios.get('/goods/catelist', {
    params
})
export let $_changecate = params => axios.post('/goods/editcate', params)
export let $_catedel = params => axios.get('/goods/delcate', {
    params
})
export let $_goodslist = params => axios.get('/goods/list', {
    params
})
export let $_goodscategories = params => axios.get('/goods/categories', {
    params
})
export let $_addgoods = params => axios.post('/goods/add', params)
export let $_delgoods = params => axios.get('/goods/del', {
    params
})
export let $_changegoods = params => axios.post('/goods/edit', params)